home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 2
/
Mac Magazin and MacEasy Magazine CD - Issue 02.iso
/
CD Extras
/
The Cruncher 1.1 Demo folder
/
Tutorial Folder
/
Cruncher Candy
/
Cruncher Candy.rsrc
/
TEXT_128.txt
< prev
next >
Wrap
Text File
|
1994-04-15
|
22KB
|
1,069 lines
/* Candybars.s - tutorial 12/16/93 FINAL */
play(;i)
{
gSndChannel = 0;
gCurCheck = 1;
MenusOnOff(0); /* turn off menus */
MakeCheckBoxes();
StartBtn = NewAnimation(290, 218, 10, 2);
ContinueBtn = NewAnimation(230, 470, 12, 2);
gAlreadyStarted = 0;
Pointer = NewAnimation(ARecX(StartBtn)-41, ARecY(StartBtn)+6, 20, 2);
SheBop = NewAnimation(0, -200, 2, 1);
SheBopSpeech = NewAnimation(0, -200, 2, 1);
gWaitFireClick = 0;
gFireCount = 0;
FireEngine = NewAnimation(0, -200, 174, 1);
FireBalloon = NewAnimation(0, -200, 190, 1);
FireLight1 = NewAnimation(0, -200, 182, 1);
FireLight2 = NewAnimation(0, -200, 182, 1);
FireSpeech = NewAnimation(0, -200, 2, 1);
FireClickMe = NewAnimation(0, -200, 210, 1);
SetIdle(5, "OpeningIdle");
}
/*-----------------------*/
OpeningIdle()
{
HoldMouseDowns(1);
CancelIdle("OpeningIdle");
HoldMouseDowns(0);
DooWopQuickLick3();
}
/*************** FIRE ERROR STUFF ********************/
FireError(errCode; )
{
/* 101 => wrong cell */
/* 102 => bad entry */
/* 101 => missing (=) */
gFireCount += 1;
if ((errCode != 101) || (gFireCount >= 2)) {
HoldMouseDowns(1);
DisableActions();
gFireCount = 0;
SetIdle(2, "FireIdle");
gFireCode = errCode;
gWaitFireClick = 1;
} else
DoBeep();
}
/*-----------------------*/
FireIdle(errCode; )
{
CancelIdle("FireIdle");
ZapSheBop();
FireEntrance(gFireCode);
gWaitFireClick = 1;
}
/*-----------------------*/
FireEntrance(errCode; right, width)
{
HoldMouseDowns(1);
right = GetSSRight();
gWidth = right - GetSSLeft();
AMoveTo(FireEngine, right-(gWidth/2) + 40, GetSSBottom()-72);
Wait(FireEngine);
gSndChannel = PlayConsecutiveSound(92, gSndChannel); /* Scram */
AMove(FireEngine, -60, 0);
Wait(FireEngine);
gSndChannel = PlayConsecutiveSound(204, gSndChannel); /* whistle */
SetSprite(FireEngine, 172);
AMoveTo(FireBalloon, ARecX(FireEngine)-154, ARecY(FireEngine)-61);
Wait(FireBalloon);
AMoveTo(FireLight1, ARecX(FireBalloon)+142, ARecY(FireBalloon)+65);
AMoveTo(FireLight2, ARecX(FireBalloon)+9, ARecY(FireBalloon)+65);
SetSprite(FireSpeech, 190 + 2*(errCode-100));
AMoveTo(FireSpeech, ARecX(FireBalloon)+10, ARecY(FireBalloon)+14);
AMoveTo(FireClickMe, ARecX(FireBalloon)+35, ARecY(FireBalloon)+68);
Wait(FireBalloon);
Wait(FireSpeech);
Wait(FireClickMe);
Wait(FireLight1);
Wait(FireLight2);
SetIdle(20, "DoFireLight");
EnableActions();
HoldMouseDowns(0);
}
/*-----------------------*/
FireExit( ; x, y)
{
HoldMouseDowns(1);
CancelIdle("DoFireLight");
x = ARecX(FireEngine);
y = ARecY(FireEngine);
if ((x > 0) && (y > 0)) {
AMoveTo(FireClickMe, 0, -200);
AMoveTo(FireSpeech, 0, -200);
AMoveTo(FireLight1, 0, -200);
AMoveTo(FireLight2, 0, -200);
Wait(FireLight1);
Wait(FireLight2);
AMoveTo(FireBalloon, 0, -200);
gSndChannel = PlayConsecutiveSound(91, gSndChannel); /* triangle */
Wait(FireBalloon);
SetSprite(FireEngine, 174);
Wait(FireEngine);
gSndChannel = PlayConsecutiveSound(92, gSndChannel); /* Scram */
AMove(FireEngine, -(gWidth/6), 0);
AMoveTo(FireEngine, 0, -200);
}
gWaitFireClick = 0;
HoldMouseDowns(0);
}
/*-----------------------*/
FireExitIdle()
{
CancelIdle("FireExitIdle");
FireExit();
if (gCurCheck > 1)
SetIdle(5, "Blinker");
}
/*-----------------------*/
DoFireLight()
{
SetSprite(FireEngine, 174);
APause(FireEngine, 10);
SetSprite(FireEngine, 172);
SetSprite(FireLight2, 184);
SetSprite(FireLight2, 186);
SetSprite(FireLight2, 188);
SetSprite(FireLight2, 182);
APause(FireLight2, 4);
Wait(FireLight2);
SetSprite(FireLight1, 184);
SetSprite(FireLight1, 186);
SetSprite(FireLight1, 188);
SetSprite(FireLight1, 182);
Wait(FireLight1);
SetSprite(FireEngine, 174);
APause(FireEngine, 10);
SetSprite(FireEngine, 172);
ResetIdle("DoFireLight");
}
/**********************************************************/
/*-----------------------*/
WaitASec(a, howMany)
{
APause(a, howMany*60);
Wait(a);
}
/*-----------------------*/
animate_click(;a,handled,mode)
{
handled = 0;
a = CurrentSprite();
if (gWaitFireClick) {
SetIdle(2, "FireExitIdle");
// FireExit();
handled = 1;
} else if ((a == StartBtn) && (!gAlreadyStarted)) {
handled = 1;
DoStartBtn();
gAlreadyStarted = 1;
} else if ((a == ContinueBtn) && (gAlreadyStarted == 1)) {
handled = 1;
DoContinueBtn();
gAlreadyStarted = 2;
} else if ((a == SheBop)) {
mode = rand(3);
SheBopDanceStart(mode);
SheBopDance(mode);
handled = 1;
} else if ((a == GetStickerAnim(3, 2))) {
DooWopPlay();
handled = 1;
} else if ((a == GetStickerAnim(5, 2))) {
DooWopQuickLick1();
handled = 1;
} else if ((a == GetStickerAnim(4, 2))) {
DooWopQuickLick2();
handled = 1;
} else if ((a == GetStickerAnim(12, 2))) {
DooWopQuickLick3();
handled = 1;
} else if (a == SheBopSpeech) {
// SetSprite(SheBopSpeech, 2);
AMoveTo(SheBopSpeech, 100, -200);
handled = 1;
}
return(handled);
}
/*-----------------------*/
formulaBar_enter(; result)
{
/* DebugCode(gCurCheck); */
if (gCurCheck==2) {
Step2();
} else if (gCurCheck==4) { /* B6 */
result = CompareCellText(1, 5, "38");
if (result) {
FireError(result);
} else
Step4();
} else if (gCurCheck==6) { /* C6 */
result = CompareCellText(2, 5, "=38*.75");
if (result) {
result = CompareCellText(2, 5, "=.75*38");
if (result)
FireError(result);
}
if (!result)
Step6();
} else if (gCurCheck==8) { /* B5 */
result = CompareCellText(1, 4, "50");
if (result) {
FireError(result);
} else
Step8();
} else if (gCurCheck==10) { /* B6 */
result = CompareCellText(1, 5, "45");
if (result) {
FireError(result);
} else
Step10();
} else if (gCurCheck==12) { /* C6 */
result = CompareCellText(2, 5, "=.75*B6");
if (result) {
result = CompareCellText(2, 5, "=B6*.75");
if (result)
FireError(result);
}
if (!result)
Step12();
} else if (gCurCheck==14) { /* B6 */
result = CompareCellText(1, 5, "50");
if (result) {
FireError(result);
} else
Step14();
}
return(1);
}
/*-----------------------*/
verify_stickerDrag(;result)
{
if (gCurCheck>15)
result = 1;
else
result = 0;
return(result);
}
/*-----------------------*/
verify_resizeRowCol(;result)
{
result = 0;
if (gCurCheck > 15)
result = 99;
else
result = 0;
return(result);
}
/*-----------------------*/
menu_select(;menuID, result)
{
result = 1;
menuID = GetLastMenuID();
if ((menuID > 2) && (gCurCheck<15))
result = 0;
return(result);
}
/*-----------------------*/
verify_fSelect()
{
if (gWaitFireClick) {
DoBeep();
result = TestFSelRect(-2,-2,-2,-2);
}
return(1);
}
/*-----------------------*/
formulaBar_type(; row, col, result)
{
result = 0;
row = GetCurCellRow();
col = GetCurCellCol();
if (gCurCheck>15) {
result = 1;
} else if (gWaitFireClick) {
DoBeep();
// SetIdle(2, "FireExitIdle");
} else if ((col == 0) && (row == 5)) { /* user's name */
result = 1;
} else if (gCurCheck==4) {
if ((col == 1) && (row == 5)) {
result = 1;
} else
result = 0;
} else if (gCurCheck==6) {
if ((col == 2) && (row == 5)) {
result = 1;
} else
result = 0;
} else if (gCurCheck==8) {
if ((col == 1) && (row == 4)) {
result = 1;
} else
result = 0;
} else if (gCurCheck==10) {
if ((col == 1) && (row == 5)) {
result = 1;
} else
result = 0;
} else if (gCurCheck==12) {
if ((col == 2) && (row == 5)) {
result = 1;
} else
result = 0;
} else if (gCurCheck==14) {
if ((col == 1) && (row == 5)) {
result = 1;
} else
result = 0;
}
if ((result == 0) && !gWaitFireClick)
FireError(101);
SetFTypingVerified(result);
return(1);
}
/*-----------------------*/
DoStartBtn(;a)
{
HoldMouseDowns(1);
AMoveTo(Pointer, ARecX(ContinueBtn)-41, ARecY(ContinueBtn)+6);
Wait(Pointer);
NBScrollForRange(16, 32);
HoldMouseDowns(0);
}
/*-----------------------*/
DoContinueBtn(;a)
{
HoldMouseDowns(1);
a = GetCheckBox(gCurCheck);
AMoveTo(Pointer, ARecX(a)-41, ARecY(a)-4);
Wait(Pointer);
gSndChannel = PlayConsecutiveSound(90, gSndChannel); /* saxScram */
NBArrangeWindow(234, 33);
UnderlineCheckText(gCurCheck);
gBlinkState = 1;
SetIdle(30, "Blinker");
SetIdle(2, "Step1");
// HoldMouseDowns(0);
}
/*-----------------------*/
CheckCurBox(halfSecs, whichBox;a, ticks)
{
a = GetCheckBox(whichBox);
gSndChannel = PlayConsecutiveSound(100, gSndChannel); /* check */
SetSprite(a, 152);
ticks = 30 * halfSecs;
if (ticks > 0)
APause(a, ticks);
SetSprite(a, 152);
Wait(a);
}
/*-----------------------*/
DoCheckBox(halfSecs, whichBox ;a)
{
SetSprite(Pointer, 22);
APause(Pointer, 10);
Wait(Pointer);
SetSprite(Pointer, 20);
CheckCurBox(halfSecs, whichBox);
}
/*-----------------------*/
PointToNextStep(;a)
{
a = GetCheckBox(gCurCheck);
SetSprite(Pointer, 22);
AMoveTo(Pointer, ARecX(a)-41, ARecY(a)-4);
APause(Pointer, 40);
Wait(Pointer);
SetSprite(Pointer, 20);
Wait(Pointer);
UnderlineCheckText(gCurCheck);
gBlinkState = 1;
SetIdle(5, "Blinker");
}
/*-----------------------*/
Blinker()
{
//HoldMouseDowns(1);
if (!gWaitFireClick) {
UnderlineCheckText(gCurCheck);
if (gBlinkState == 1) {
gBlinkState = 0;
SetIdle(3, "Blinker");
} else {
gBlinkState = 1;
SetIdle(40, "Blinker");
}
}
//HoldMouseDowns(0);
}
/*-----------------------*/
KillBlinker(whichBox)
{
CancelIdle("Blinker");
if (gBlinkState == 1) {
UnderlineCheckText(whichBox);
gBlinkState = 0;
}
}
/*-----------------------*/
SheBopIntro(phrase)
{
if ((phrase <= 0) || (phrase == 2)) {
gSndChannel = PlayConsecutiveSound(201, gSndChannel); /* triangle */
} else if (phrase == 1) {
gSndChannel = PlayConsecutiveSound(90, gSndChannel); /* saxScram */
gSndChannel = PlayConsecutiveSound(91, gSndChannel); /* triangle2 */
}
}
/*-----------------------*/
SheBopMusic(phrase)
{
if (phrase <= 0) {
gSndChannel = PlayConsecutiveSound(205, gSndChannel); /* congas 1 */
gSndChannel = PlayConsecutiveSound(206, gSndChannel); /* congas 2 */
} else if (phrase == 1) {
gSndChannel = PlayConsecutiveSound(206, gSndChannel); /* congas 2 */
gSndChannel = PlayConsecutiveSound(207, gSndChannel); /* congas 3 */
} else if (phrase == 2) {
gSndChannel = PlayConsecutiveSound(205, gSndChannel); /* congas 1 */
gSndChannel = PlayConsecutiveSound(206, gSndChannel); /* congas 2 */
gSndChannel = PlayConsecutiveSound(207, gSndChannel); /* congas 3 */
}
}
/*-----------------------*/
SheBopOutro(phrase)
{
if ((phrase <= 0) || (phrase == 2)) {
gSndChannel = PlayConsecutiveSound(204, gSndChannel); /* whistle */
} else if (phrase == 1) {
gSndChannel = PlayConsecutiveSound(200, gSndChannel); /* shaker */
}
}
/*-----------------------*/
SheBopDanceStart(mode;)
{
Wait(SheBop);
SheBopIntro(mode);
SetSprite(SheBop, 104);
SetSprite(SheBop, 108);
APause(SheBop, 10);
Wait(SheBop);
SetSprite(SheBop, 104);
SetSprite(SheBop, 102);
Wait(SheBop);
SetSprite(SheBop, 102);
while(SoundsToPlay(gSndChannel)) {} ;
}
/*-----------------------*/
SheBopDance(mode;)
{
SetSprite(SheBop, 104);
Wait(SheBop);
SheBopMusic(mode);
SetSprite(SheBop, 104);
SetSprite(SheBop, 106);
SetSprite(SheBop, 104);
SetSprite(SheBop, 106);
while(SoundsToPlay(gSndChannel))
{
SetSprite(SheBop, 108);
SetSprite(SheBop, 110);
Wait(SheBop);
SetSprite(SheBop, 110);
}
SheBopOutro(mode);
SetSprite(SheBop, 106);
SetSprite(SheBop, 104);
SetSprite(SheBop, 102);
}
/*-----------------------*/
SheBopPuzzled(;saveDelay)
{
saveDelay = GetADelay();
SetADelay(8);
Wait(SheBop);
gSndChannel = PlayConsecutiveSound(90, gSndChannel); /* saxScram */
gSndChannel = PlayConsecutiveSound(91, gSndChannel); /* triangle2 */
SetSprite(SheBop, 104);
SetSprite(SheBop, 108);
SetSprite(SheBop, 104);
SetSprite(SheBop, 102);
Wait(SheBop);
while(SoundsToPlay(gSndChannel)) {} ;
gSndChannel = PlayConsecutiveSound(204, gSndChannel); /* whistle */
SetSprite(SheBop, 114);
APause(SheBop, 120);
SetSprite(SheBop, 114);
SetADelay(saveDelay);
}
/*-----------------------*/
ZapSheBop()
{
// SetSprite(SheBop, 2);
// SetSprite(SheBopSpeech, 2);
AMoveTo(SheBopSpeech, 0, -200);
AMoveTo(SheBop, 0, -200);
}
/*-----------------------*/
DooWopQuickLick1(; a, saveID, saveDelay)
{
saveDelay = GetADelay();
SetADelay(16);
a = GetStickerAnim(5, 2);
saveID = AGetSpriteID(a);
SetSprite(a, 124);
Wait(a);
gSndChannel = PlayConsecutiveSound(112, gSndChannel); /* riff 3 */
SetSprite(a, 126);
SetSprite(a, 124);
SetSprite(a, 126);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 130);
Wait(a);
gSndChannel = PlayConsecutiveSound(114, gSndChannel); /* squeeky drop */
SetSprite(a, 126);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 122);
Wait(a);
SetADelay(saveDelay);
}
/*-----------------------*/
DooWopQuickLick2(; a, saveID, saveDelay)
{
saveDelay = GetADelay();
SetADelay(15);
a = GetStickerAnim(4, 2);
saveID = AGetSpriteID(a);
SetSprite(a, 126);
Wait(a);
gSndChannel = PlayConsecutiveSound(113, gSndChannel); /* squeek up */
SetSprite(a, 130);
SetSprite(a, 126);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 126);
Wait(a);
gSndChannel = PlayConsecutiveSound(117, gSndChannel); /* zot! */
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 122);
Wait(a);
SetADelay(saveDelay);
}
/*-----------------------*/
DooWopQuickLick3(; a, saveID, saveDelay)
{
saveDelay = GetADelay();
SetADelay(16);
a = GetStickerAnim(12, 2);
saveID = AGetSpriteID(a);
SetSprite(a, 124);
Wait(a);
gSndChannel = PlayConsecutiveSound(110, gSndChannel); /* riff 1a */
SetSprite(a, 124);
SetSprite(a, 128);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
// SetSprite(a, 122);
// Wait(a);
SetSprite(a, 124);
Wait(a);
gSndChannel = PlayConsecutiveSound(111, gSndChannel); /* riff 1b */
SetSprite(a, 126);
APause(a,20);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
// SetSprite(a, 122);
// Wait(a);
SetSprite(a, 124);
Wait(a);
gSndChannel = PlayConsecutiveSound(112, gSndChannel); /* riff 3 */
SetSprite(a, 126);
SetSprite(a, 124);
SetSprite(a, 126);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 126);
Wait(a);
gSndChannel = PlayConsecutiveSound(117, gSndChannel); /* zot! */
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 122);
Wait(a);
SetADelay(saveDelay);
}
/*-----------------------*/
DooWopPlay(; a, saveID, saveDelay)
{
saveDelay = GetADelay();
SetADelay(16);
a = GetStickerAnim(3, 2);
saveID = AGetSpriteID(a);
SetSprite(a, 124);
Wait(a);
gSndChannel = PlayConsecutiveSound(110, gSndChannel); /* riff 1a */
SetSprite(a, 124);
SetSprite(a, 128);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
// SetSprite(a, 122);
// Wait(a);
SetSprite(a, 124);
Wait(a);
gSndChannel = PlayConsecutiveSound(111, gSndChannel); /* riff 1b */
SetSprite(a, 126);
APause(a,20);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
// SetSprite(a, 122);
// Wait(a);
SetSprite(a, 124);
Wait(a);
gSndChannel = PlayConsecutiveSound(112, gSndChannel); /* riff 3 */
SetSprite(a, 126);
SetSprite(a, 124);
SetSprite(a, 126);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 130);
Wait(a);
gSndChannel = PlayConsecutiveSound(115, gSndChannel); /* drop */
SetSprite(a, 126);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 126);
Wait(a);
gSndChannel = PlayConsecutiveSound(117, gSndChannel); /* zot! */
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 122);
Wait(a);
SetADelay(saveDelay);
}
/*-----------------------*/
DooWopFinale(; a, saveID, saveDelay)
{
saveDelay = GetADelay();
SetADelay(20);
a = GetStickerAnim(3, 2);
saveID = AGetSpriteID(a);
SetSprite(a, 124);
Wait(a);
gSndChannel = PlayConsecutiveSound(112, gSndChannel); /* riff 3 */
SetSprite(a, 126);
APause(a,20);
SetSprite(a, 124);
Wait(a);
while(SoundsToPlay(gSndChannel)) {} ;
SetSprite(a, 122);
Wait(a);
gCurCheck = 15;
UnderlineCheckText(gCurCheck);
CheckCurBox(3, gCurCheck);
UnderlineCheckText(gCurCheck);
gCurCheck = gCurCheck + 1;
UnderlineCheckText(gCurCheck);
CheckCurBox(3, gCurCheck);
UnderlineCheckText(gCurCheck);
gCurCheck = gCurCheck + 1;
UnderlineCheckText(gCurCheck);
CheckCurBox(3, gCurCheck);
UnderlineCheckText(gCurCheck);
APause(a,40);
SetSprite(a, 122);
Wait(a);
DooWopPlay();
SetADelay(saveDelay);
}
/*-----------------------*/
CheckIt()
{
gCurCheck = gCurCheck + 1;
KillBlinker(gCurCheck-1);
DoCheckBox(0, gCurCheck-1);
}
/*-----------------------*/
Step1(;row,col)
{
HoldMouseDowns(1);
row = GetCurCellRow();
col = GetCurCellCol();
if ((col == 0) && (row == 5)) { /* A6 */
CancelIdle("Step1");
CheckIt();
NBScrollForRange(34, 46);
PointToNextStep();
/* formulaBar_type & formulaBar_enter handle next step */
} else
ResetIdle("Step1");
HoldMouseDowns(0);
}
/*-----------------------*/
Step2()
{
HoldMouseDowns(1);
CheckIt();
NBScrollForRange(42, 46);
PointToNextStep();
SetIdle(2, "Step3");
//HoldMouseDowns(0);
}
/*-----------------------*/
Step3(;row,col)
{
HoldMouseDowns(1);
row = GetCurCellRow();
col = GetCurCellCol();
if ((col == 1) && (row == 5)) { /* B6 */
CancelIdle("Step3");
CheckIt();
NBScrollForRange(42, 46);
PointToNextStep();
/* formulaBar_type & formulaBar_enter handle next step */
} else
ResetIdle("Step3");
HoldMouseDowns(0);
}
/*-----------------------*/
Step4()
{
HoldMouseDowns(1);
DisableActions();
// CheckIt();
KillBlinker(gCurCheck);
DoCheckBox(0, gCurCheck);
AMoveTo(SheBop, 216, 53);
SetSprite(SheBop, 102);
SheBopDanceStart(0);
SetSprite(SheBopSpeech, 50);
AMoveTo(SheBopSpeech, 218, 2);
SheBopDance(1);
WaitASec(SheBopSpeech, 2);
SetSprite(SheBopSpeech, 50);
Wait(SheBop);
NBScrollForRange(47, 58);
gCurCheck = gCurCheck + 1;
PointToNextStep();
SetIdle(2, "Step5");
// HoldMouseDowns(0);
EnableActions();
}
/*-----------------------*/
Step5(;row,col)
{
HoldMouseDowns(1);
row = GetCurCellRow();
col = GetCurCellCol();
if ((col == 2) && (row == 5)) { /* C6 */
CancelIdle("Step5");
gCurCheck = gCurCheck + 1;
ZapSheBop();
KillBlinker(gCurCheck-1);
DoCheckBox(0, gCurCheck-1);
NBScrollForRange(48, 58);
PointToNextStep();
/* formulaBar_type & formulaBar_enter handle next step */
} else
ResetIdle("Step5");
HoldMouseDowns(0);
}
/*-----------------------*/
Step6()
{
DisableActions();
HoldMouseDowns(1);
// CheckIt();
KillBlinker(gCurCheck);
DoCheckBox(0, gCurCheck);
NBScrollForRange(62, 74);
DooWopQuickLick1();
gCurCheck = gCurCheck + 1;
PointToNextStep();
SetIdle(2, "Step7");
// HoldMouseDowns(0);
EnableActions();
}
/*-----------------------*/
Step7(;row,col)
{
HoldMouseDowns(1);
row = GetCurCellRow();
col = GetCurCellCol();
if ((col == 1) && (row == 4)) { /* B5 */
CancelIdle("Step7");
CheckIt();
NBScrollForRange(63, 74);
PointToNextStep();
/* formulaBar_type & formulaBar_enter handle next step */
} else
ResetIdle("Step7");
HoldMouseDowns(0);
}
/*-----------------------*/
Step8()
{
HoldMouseDowns(1);
DisableActions();
// CheckIt();
KillBlinker(gCurCheck);
DoCheckBox(0, gCurCheck);
AMoveTo(SheBop, 217, 50);
SetSprite(SheBop, 102);
SheBopDanceStart(0);
SetSprite(SheBopSpeech, 56);
AMoveTo(SheBopSpeech, 194, 3);
SheBopDance(0);
WaitASec(SheBopSpeech, 2);
SetSprite(SheBopSpeech, 56);
Wait(SheBop);
NBScrollForRange(70, 75);
gCurCheck = gCurCheck + 1;
PointToNextStep();
SetIdle(2, "Step9");
// HoldMouseDowns(0);
EnableActions();
}
/*-----------------------*/
Step9(;row,col)
{
HoldMouseDowns(1);
row = GetCurCellRow();
col = GetCurCellCol();
if ((col == 1) && (row == 5)) { /* B6 */
CancelIdle("Step9");
ZapSheBop();
CheckIt();
NBScrollForRange(70, 75);
PointToNextStep();
/* formulaBar_type & formulaBar_enter handle next step */
} else
ResetIdle("Step9");
HoldMouseDowns(0);
}
/*-----------------------*/
Step10()
{
HoldMouseDowns(1);
DisableActions();
// CheckIt();
KillBlinker(gCurCheck);
DoCheckBox(0, gCurCheck);
SetIdle(2, "Step11");
AMoveTo(SheBop, 218, 54);
SetSprite(SheBop, 102);
SheBopPuzzled();
SetSprite(SheBopSpeech, 52);
AMoveTo(SheBopSpeech, 225, 2);
APause(SheBopSpeech, 30);
Wait(SheBopSpeech);
WaitASec(SheBopSpeech, 2);
SetSprite(SheBopSpeech, 52);
NBScrollForRange(77, 87);
gCurCheck = gCurCheck + 1;
PointToNextStep();
SetIdle(2, "Step11");
// HoldMouseDowns(0);
EnableActions();
}
/*-----------------------*/
Step11(;row,col)
{
HoldMouseDowns(1);
row = GetCurCellRow();
col = GetCurCellCol();
if ((col == 2) && (row == 5)) { /* C6 */
CancelIdle("Step11");
ZapSheBop();
CheckIt();
NBScrollForRange(77, 87);
PointToNextStep();
/* formulaBar_type & formulaBar_enter handle next step */
} else
ResetIdle("Step11");
HoldMouseDowns(0);
}
/*-----------------------*/
Step12()
{
HoldMouseDowns(1);
DisableActions();
// CheckIt();
KillBlinker(gCurCheck);
DoCheckBox(0, gCurCheck);
NBScrollForRange(90, 101);
DooWopQuickLick2();
gCurCheck = gCurCheck + 1;
PointToNextStep();
SetIdle(2, "Step13");
// HoldMouseDowns(0);
EnableActions();
}
/*-----------------------*/
Step13(;row,col)
{
HoldMouseDowns(1);
row = GetCurCellRow();
col = GetCurCellCol();
if ((col == 1) && (row == 5)) { /* B6 */
CancelIdle("Step13");
CheckIt();
NBScrollForRange(90, 101);
PointToNextStep();
/* formulaBar_type & formulaBar_enter handle next step */
} else
ResetIdle("Step13");
HoldMouseDowns(0);
}
/*-----------------------*/
Step14()
{
HoldMouseDowns(1);
DisableActions();
CheckIt();
AMoveTo(Pointer, -100, -100);
AMoveTo(SheBop, 218, 52);
SetSprite(SheBop, 102);
SheBopDanceStart(2);
SetSprite(SheBopSpeech, 54);
AMoveTo(SheBopSpeech, 158, 16);
SheBopDance(2);
WaitASec(SheBopSpeech, 3);
SetSprite(SheBopSpeech, 54);
Wait(SheBop);
NBScrollForRange(102, 112);
DooWopFinale();
MenusOnOff(1); /* turn on menus */
NBScrollForRange(103, 112);
EnableActions();
HoldMouseDowns(0);
}
/*-----------------------*/
Àá